<!DOCTYPE html>
<html>
<head>
    <title>删除失败</title>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="3;url=/user/Competitions.jsp">
    <script>
        function goBack() {
            history.back();
        }

        function startCountdown(duration, display) {
            var timer = duration;
            setInterval(function () {
                display.textContent = timer;

                if (--timer < 0) {
                    timer = duration;
                }
            }, 1000);
        }

        window.onload = function () {
            var countdown = document.getElementById("countdown");
            startCountdown(3, countdown);
        };
    </script>
</head>
<body>
<div align="center">
    <h1>删除失败！请检查竞赛记录表里是否存在相应记录。</h1>
    <p>倒计时：<span id="countdown">3</span>秒后自动返回上一页...</p>
    <button onclick="goBack()">返回上一页</button>
</div>
</body>
</html>